cmake_minimum_required(VERSION 3.14)

set(projectName qrAI_t113_TW)

project(${projectName} VERSION 1.01 LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(PROJECT_SOURCES
        main.cpp
        # ./class_sqlite.h
        # ./class_sqlite.cpp
        # ./class_gettimestr.h
        # ./class_gettimestr.cpp
        # ./class_device_232.h
        # ./class_device_232.cpp
        # ./class_device_485.h
        # ./class_device_485.cpp
        ./class_tcp.h
        ./class_tcp.cpp

)

add_executable(${projectName}
  ${PROJECT_SOURCES}
  class_modbus.cpp
  class_modbus.h class_modbus.cpp
)

target_link_libraries(${projectName} PRIVATE modbus)









